__copyright__ = 'Copyright (c) 2006-2008 Sun Microsystems Inc.'
__license__ = 'LGPL'
from orca_i18n import _
__phonlist = _('a : alpha, b : bravo, c : charlie, d : delta, e : echo, f : foxtrot, g : golf, h : hotel, i : india, j : juliet, k : kilo, l : lima, m : mike, n : november, o : oscar, p : papa, q : quebec, r : romeo, s : sierra, t : tango, u : uniform, v : victor, w : whiskey, x : xray, y : yankee, z : zulu')
__phonnames = { }
for __pair in __phonlist.split(','):
__w = __pair.split(':')
__phonnames[__w[0].strip()] = __w[1].strip()
def getPhoneticName(character):
"""Given a character, return its phonetic name, which is typically
the 'military' term used for the character.
Arguments:
- character: the character to get the military name for
Returns a string representing the military name for the character